<?php
// +----------------------------------------------------------------------
// | 中犇多商户
// +----------------------------------------------------------------------
// | Copyright (c) 2019-2021 中犇科技 All rights reserved.
// +----------------------------------------------------------------------

namespace app\admin\validate;

use think\Validate;

/**
 * 管理员主表验证器
 * @package app\user\validate
 * @author 似水星辰 [2630481389@qq.com]
 */
class Admin extends Validate
{
    //定义规则
    protected $rule = [
        //6-20位
        'password|密码'=>'/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,20}$/'
    ];

    protected $message = [
        'password./^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,20}$/' =>'6-20位字母加数字'
    ];

    // 定义验证场景
    protected $scene = [

    ];
}
